import { IsNotEmpty, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class GoodCreateDto {
    /**
     * 商品名称
     */
    @ApiProperty({
        description: '商品名称',
        required: true,
    })
    @IsNotEmpty({
        message: '商品名称不能为空',
    })
    name: string;

    /**
     * 商品图片
     */
    @ApiProperty({
        description: '商品图片',
        required: true,
    })
    @IsNotEmpty({
        message: '商品图片不能为空',
    })
    thumb_url: string;

    /**
     * 店铺id
     */
    @ApiProperty({
        description: '店铺id',
        required: true,
    })
    @IsNotEmpty({
        message: '店铺id不能为空',
    })
    shop_id: number;

}
